
<%@page import="java.util.Date" %>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.GregorianCalendar"%>
<%@page import="entity.Local"%>
<!--<script type="text/javascript" src="/quanlyphonghoc/ajax/ajax.js"></script>-->
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%  
    Date now = new Date();
    SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy");
    String d = sdf.format(now);
    Local lc= new Local();
    ResultSet rslc=lc.selectDB();
%>
<p>&nbsp;</p>
    <p class="title">THÔNG TIN MƯỢN PHÒNG</p>
    <p>&nbsp;</p>
    <div class="divlon" id="muonphong">
      <form id="formborrow" name="formborrow" method="post" action="/quanlyphonghoc/borrow">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="30%" height="25" align="right" valign="top"><strong>Ngày Mượn :</strong></td>
<td width="79%" align="left" valign="top"><label>
              <input type="text" name="dateborrow" id="dateborrow" onClick="return showCalendar('dateborrow', '%d-%m-%Y');"  size="40"
><input type="button" value=" ... " onclick="return showCalendar('dateborrow', '%d-%m-%Y');">
            </label></td>
          </tr>
          <tr>
            <td width="21%" height="25" align="right" valign="top"><strong>Khu Vực :</strong></td>
      <td align="left" valign="top"><label>
              <select name="local" class="width" id="local" onchange="check_if(this.value, 'roomax', '/quanlyphonghoc/ajax/ajax.jsp?key=local&idLocal=')"">
                  <option value="">...</option>
                  <% while(rslc.next()){ %>
                  <option value="<%=rslc.getString("idKhu") %>"><%=rslc.getString("TenKhu")%></option>
                  <%} %>
              </select>
            </label></td>
          </tr>
          <tr>
            <td width="21%" height="25" align="right" valign="top"><strong>Phòng :</strong></td>
      <td align="left" valign="top"><label>
              <span id="roomax">
              <select name="room" class="width" id="room" disabled="disabled" onclick="Change2()">
                  <option >...</option>
              </select>
              </span>
            </label></td>
          </tr>
          <tr>
            <td width="21%" height="24" align="right" valign="top"><strong>Tiết :</strong></td>
            <td align="left" valign="top"><label>
              <select name="period" size="3" multiple="multiple" disabled="disabled" class="width" id="period">
                <option value="123">Tiết 123</option>
                <option value="456">Tiết 456</option>
                <option value="789">Tiết 789</option>
                <option value="012">Tiết 012</option>
                <option value="345">Tiết 345</option>
                </select>
            </label></td>
          </tr>
          <tr>
            <td height="24" align="right" valign="top"><strong>Yêu Cầu Hỗ Trợ: </strong></td>
            <td align="left" valign="top"> <label>
              <textarea name="require" cols="50" rows="5" id="require"></textarea>
            </label></td>
          </tr>
          <tr>
            <td width="21%" height="24" align="right" valign="top"><strong>Lý Do :</strong></td>
            <td align="left" valign="top"><label>
              <textarea name="reason" cols="50" rows="6" id="reason"></textarea>
            </label></td>
          </tr>
          <tr>
            <td height="45" colspan="2" align="center"><label>
                    <input type="hidden" name="idUser" id="idUser" value="<%=(String)session.getAttribute("idUser") %>"/>

              <input type="hidden" name="dateregis" id="dateregis"  value="<%=d %>"/>
              <input type="button" name="check" id="check" value="   Kiểm Tra   " onclick="checkAll()"/>
            </label></td>
          </tr>
          <tr>
            <td height="45" colspan="2" align="center"><label>
              <input type="submit" name="send" id="send" value="   Gửi   " disabled="disabled"/>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
              <label>
              <input type="reset" name="reset" id="reset" value="Làm Lại" disabled="disabled"/>
            </label></td>
          </tr>
        </table>
      </form>
</div>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>